import request from '@/utils/request'

export function roleList(data) {
  return request({
    url: '/admin/system/role/list',
    method: 'get',
    params: data
  })
}

export function createRole(data) {
  return request({
    url: '/admin/system/role/create',
    method: 'post',
    data: data
  })
}
export function updateRole(data) {
  return request({
    url: '/admin/system/role/update',
    method: 'post',
    data: data
  })
}
export function deleteRole(data) {
  return request({
    url: '/admin/system/role/delete',
    method: 'post',
    data: data
  })
}
